package com.group4.datafactorybackend.entity.VO;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * @author xin
 * @date 2022/7/28
 * @description 码表文件导入类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ExcelTarget("StopWatchExcelVO")
public class StopWatchExcelVO implements Serializable {
    /**
     * 码表名称
     */
    @Excel(name = "码表名称",orderNum = "1",needMerge = true,isImportField = "true")
    @NotBlank(message = "名称不能为空")
    private String stopwatchName;
    /**
     * 码表说明
     */
    @Excel(name = "码表说明",orderNum = "2",needMerge = true,isImportField = "true")
    @Max(value = 200,message = "码表说明最大值不能超过200")
    private String stopwatchIllustrate;
    /**
     * 码表配置
     */
    @ExcelCollection(name = "编码信息",orderNum = "3")
    private List<EncodingConfigurationExcelVO> list;

}
